#include "Texture.h"

using namespace std;

namespace drawing {

	Texture::Texture( std::string filename, int width, int height, bool transparent ) :
		m_filename( filename ),
		m_id( -1 ),
		m_width( width ),
		m_height( height ),
		m_transparent( transparent )
	{}

	Texture::Texture( const Texture& other ) :
		m_filename( other.m_filename ),
		m_id( other.m_id ),
		m_width( other.m_width ),
		m_height( other.m_height ),
		m_transparent( other.m_transparent )
	{}

	Texture& Texture::operator=( const Texture& rhs )
	{
		if( this == &rhs ) return *this; // handle self assignment

		m_filename = rhs.m_filename;
		m_id = rhs.m_id;
		m_width = rhs.m_width;
		m_height = rhs.m_height;
		m_transparent = rhs.m_transparent;
		return *this;
	}

}
